<div class="portlet x12">
    <div class="portlet-header"><h4>Videos</h4></div>
    <div class="portlet-content">
        <h2>Listado de videos</h2>
        <?php echo $this->Html->link('Insertar nuevo registro',array('action'=>'new')); ?>
        <br /><br />
        <?php if(!empty($videos)){ ?>
            <table cellpadding="0" cellspacing="0" border="0" class="display" rel="datatable" id="example">
                <thead>
                    <tr>
                        <th>T&iacute;tulo</th>
                        <th>Descripci&oacute;n</th>
                        <th>Archivo</th>
                        <th>Duraci&oacute;n</th>
                        <th>Precio</th>
                        <th>Creado</th>
                        <th>Acciones</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($videos as $video){ ?>
                        <tr class="odd gradeX">
                            <td><?php echo $video['Video']['title']; ?></td>
                            <td><?php echo $video['Video']['description']; ?></td>
                            <td><?php echo $video['Video']['file']; ?></td>
                            <td><?php echo $video['Video']['last']; ?></td>
                            <td><?php echo $video['Video']['price']; ?></td>
                            <td><?php echo $video['Video']['created']; ?></td>
                            <td>
                                <?php echo $this->Html->link('Editar',array('action'=>'edit',$video['Video']['id'])); ?>
                                <?php echo $this->Html->link('Eliminar',array('action'=>'delete',$video['Video']['id']),null,"Esta seguro que quiere eliminar este registro?"); ?>
                            </td>
                        </tr>
                    <?php } ?>
                </tbody>
            </table>
        <?php }else{ ?>
            <b>No existen Videos.</b>
        <?php } ?>
    </div>
</div>